import request from '@/utils/request'

// 查询房产资产信息列表
export function listHouseResource(query) {
  return request({
    url: '/project/houseResource/list',
    method: 'get',
    params: query
  })
}

// 查询房产资产信息详细
export function getHouseResource(houseId) {
  return request({
    url: '/project/houseResource/' + houseId,
    method: 'get'
  })
}

// 新增房产资产信息
export function addHouseResource(data) {
  return request({
    url: '/project/houseResource',
    method: 'post',
    data: data
  })
}

// 修改房产资产信息
export function updateHouseResource(data) {
  return request({
    url: '/project/houseResource',
    method: 'put',
    data: data
  })
}

// 删除房产资产信息
export function delHouseResource(houseId) {
  return request({
    url: '/project/houseResource/' + houseId,
    method: 'delete'
  })
}
